const actions = {
	jia({commit},stuObj){
		if(stuObj.name.startsWith('刘')){
			commit('JIA',stuObj)
		}
	}
}
const mutations = {
	JIA(state,stuObj){
		state.list.unshift(stuObj)
	}
}
const state = {
	list:[
		{id:'001',name:'刘三岁'}
	],
}
const getters = {
	total(state){
		return state.list.length
	}
}

export default {
	namespaced:true,
	actions,
	mutations,
	state,
	getters
}